﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XYZshell.Game.CardGameEngine;
namespace XYZshell.TouhouCard
{
	/// <summary>
	/// 角色卡类
	/// </summary>
	public class CharacterCard :TouhouCard
	{
		/// <summary>
		/// 默认构造
		/// </summary>
		public CharacterCard()
		{

			 CardType = CardType.Character;
		}

		public CharacterCard( Card card )
			: base( card )
		{
			CardType = CardType.Character;
		}
		/// <summary>
		/// 灵力
		/// </summary>
		public int MagicPower
		{
			get
			{
				return  int.Parse( Properties["MagicPower"]);
			}
			set
			{
				Properties["MagicPower"] = value.ToString();
			}
		}
		/// <summary>
		/// 最大灵力
		/// </summary>
		public int MaxMagicPower
		{
			get
			{
				return int.Parse( Properties["MagicPower"] );
			}
			set
			{
				Properties["MagicPower"] = value.ToString();
			}
		}
		/// <summary>
		/// 描述
		/// </summary>
		public string Description
		{
			get
			{
				return Properties["Description"] ;
			}
			set
			{
				Properties["Description"] = value;
			}
		}
		/// <summary>
		/// 称呼
		/// </summary>
		public string NickName
		{
			get
			{
				return  Properties["NickName"] ;
			}
			set
			{
				Properties["NickName"] = value;
			}
		}
		/// <summary>
		/// 技能描述
		/// </summary>
		public string SkillDescription
		{
			get
			{
				return Properties["SkillDescription"];
			}
			set
			{
				Properties["SkillDescription"] = value;
			}
		}
		/// <summary>
		/// 技能
		/// </summary>
		public string Skill
		{
			get
			{
				return  Properties["Skill"];
			}
			set
			{
				Properties["Skill"] = value;
			}
		}
		/// <summary>
		/// 角色主题曲
		/// </summary>
		public string ThemeMusic
		{

			get
			{
				return Properties["ThemeMusic"];
			}
			set
			{
				Properties["ThemeMusic"] = value;
			}
		}

		public string CharacterImage
		{
			get
			{
				return Properties["CharacterImage"];
			}
			set
			{
				Properties["CharacterImage"] = value;
			}
		}

		/// <summary>
		/// 攻击力
		/// </summary>
		public int Attack
		{
			get
			{
				return int.Parse( Properties["Attack"] );
			}
			set
			{
				Properties["Attack"] = value.ToString();
			}
		}
		/// <summary>
		/// 防御力
		/// </summary>
		public int Defence
		{
			get
			{
				return int.Parse( Properties["Defence"] );
			}
			set
			{
				Properties["Defence"] = value.ToString();
			}
		}
		/// <summary>
		/// 种族
		/// </summary>
		public CharacterRace  Race
		{
			get
			{
				return (CharacterRace)Enum.Parse( typeof( CharacterRace ), Properties["CharacterRace"] );
			}
			set
			{
				Properties["CharacterRace"] = value.ToString();
			}
		}
		/// <summary>
		/// 属性
		/// </summary>
		public CharacterProperty Property
		{
			get
			{
				return (CharacterProperty)Enum.Parse( typeof( CharacterProperty ), Properties["Property"] );
			}
			set
			{
				Properties["CharacterProperty"] = value.ToString();
			}
		}


	}
}
